package com.ssy.lingxi.member.merchant.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 会员类型
 * @author 万宁
 * @version 2.0.0
 * @date 2020-06-03
 */
@Entity
@Table(schema = "public", name = "ms_mc_member_type", indexes = {@Index(name = "ms_mc_member_type_type_enum", columnList = "typeEnum")})
public class MemberTypeDO implements Serializable {
    private static final long serialVersionUID = 689808333438270360L;

    /**
     * 会员类型Id
     */
    @Id
    @GeneratedValue(strategy= GenerationType.SEQUENCE, generator="member_type_seq")
    @SequenceGenerator(sequenceName="ms_mc_member_type_seq", name="member_type_seq",allocationSize = 1)
    private Long id;

    /**
     * 会员类型名称
     */
    @Column(columnDefinition = "varchar(50)")
    private String typeName;

    /**
     * 会员类型枚举，定义在MemberTypeEnum中
     */
    @Column(columnDefinition = "int2")
    private Integer typeEnum;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getTypeEnum() {
        return typeEnum;
    }

    public void setTypeEnum(Integer typeEnum) {
        this.typeEnum = typeEnum;
    }
}
